package com.example.rbac.uitls;

/**
 * Created by Administrator on 2017/11/13.
 */

/**
 * 对字符串处理的工具类
 */
public class StringUtils {


    public static boolean isNotEmpty(String str){
            if (!"".equals(str) && str != null){
                return true;
            }
                return  false;
    }

    public static String[] getArray(String str, String model){
        if (!isNotEmpty(str) && !isNotEmpty(model)){
            return null;
        }
            return str.split(model);
    }
}
